package org.skyfree.ghyll.ui.part;

import org.eclipse.ui.part.IPage;
import org.skyfree.ghyll.ui.property.ISelectionEnablePage;

public abstract class SelectionPropertyEditorPart extends SelectionEnableEditorPart
{
	@SuppressWarnings("unchecked")
	@Override
	public Object getAdapter(Class adapter) 
	{
		if (adapter == IPage.class) {
			return this.getPropertyPage();
		}
		return super.getAdapter(adapter);
	}
	
	abstract protected ISelectionEnablePage getPropertyPage();
}
